package com.atguigu.rules;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RoundRobinRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author : yangxudong
 * @Description :
 * @Date : 下午4:48 2018/8/2
 */
@Configuration
public class MyRule {
    @Bean
    public IRule ruleSelf() {
        return new RoundRuleFive();
    }
}
